﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Top.Api.Request;

namespace MicroAmoy.Util.AliTop
{
    class Program
    {
        static void Main(string[] args)
        {
            /*WirelessShareTpwdCreateRequest req = new WirelessShareTpwdCreateRequest();
            WirelessShareTpwdCreateRequest.GenPwdIsvParamDtoDomain obj1 = new WirelessShareTpwdCreateRequest.GenPwdIsvParamDtoDomain();
            obj1.Ext = "{\"xx\":\"xx\"}";
            obj1.Logo = "http://m.taobao.com/xxx.jpg";
            obj1.Url = "http://m.taobao.com";
            obj1.Text = "超值活动，惊喜活动多多";
            obj1.UserId = 24234234234L;
            req.TpwdParam_ = obj1;
            Console.Write(AliPwdIsv.GenPwd(req));
            Console.ReadLine();*/
            ItemSkuGetRequest req = new ItemSkuGetRequest();
            req.Fields = "sku_id,iid,properties,quantity,price,outer_id,created,modified,status";
            req.SkuId = 81893848L;
            req.NumIid = 123456L;
            req.Nick = "test1065";
            var d=AliItem.GetSku(req);
        }

        static void SMS()
        {
            AlibabaAliqinFcSmsNumSendRequest req = new AlibabaAliqinFcSmsNumSendRequest();
            req.Extend = "123456";
            req.SmsType = "normal";
            req.SmsFreeSignName = "皮皮生活秀";
            req.SmsParam = "{\"name\":\"鳄鱼皮包\",\"status\":\"已经降价\",\"Product\":\"￥iokGMYEBcp￥\"}";
            req.RecNum = "18501701962";
            req.SmsTemplateCode = "SMS_56010204";
            string responseStr = Aliqin.SendMMS(req);
            Console.WriteLine(responseStr);
        }
    }
}
